package wxdb.parse;
import wxdb.errmsg.ErrorMsg;
import java.io.*;
import javax.swing.*;


public class Yylex implements Lexer {
	private final int YY_BUFFER_SIZE = 512;
	private final int YY_F = -1;
	private final int YY_NO_STATE = -1;
	private final int YY_NOT_ACCEPT = 0;
	private final int YY_START = 1;
	private final int YY_END = 2;
	private final int YY_NO_ANCHOR = 4;
	private final int YY_BOL = 128;
	private final int YY_EOF = 129;

private Token tok(int position,int kind, Object value) {
    	return new Token(position,kind, yychar, yychar+yylength(),value);
}
public Yylex(java.io.InputStream s, ErrorMsg e) {
  this(s);
  errorMsg=e;
}
public Yylex (java.io.File file,String filename,ErrorMsg e){
	this();
	if (null == file) {
		throw (new Error("Error: Bad file initializer."));
	}
	try{
		yy_reader = new java.io.BufferedReader(new FileReader(file));
		errorMsg = e;
	}catch(Exception err){};
}
public Yylex(String cmd){
	this();
	try{
		String fileName = "tmpcmd";
 		RandomAccessFile randomFile = new RandomAccessFile(fileName, "rw");
 		randomFile.setLength(0);
		randomFile.writeBytes(cmd);
		randomFile.close();
		File file = new File(fileName);
		yy_reader = new java.io.BufferedReader(new FileReader(file));
		errorMsg = new ErrorMsg("tmpin");
	}catch(Exception e){};
}
private ErrorMsg errorMsg;
private String string_content = "";
	private java.io.BufferedReader yy_reader;
	private int yy_buffer_index;
	private int yy_buffer_read;
	private int yy_buffer_start;
	private int yy_buffer_end;
	private char yy_buffer[];
	private int yychar;
	private int yyline;
	private boolean yy_at_bol;
	private int yy_lexical_state;

	public Yylex (java.io.Reader reader) {
		this ();
		if (null == reader) {
			throw (new Error("Error: Bad input stream initializer."));
		}
		yy_reader = new java.io.BufferedReader(reader);
	}

	public Yylex (java.io.InputStream instream) {
		this ();
		if (null == instream) {
			throw (new Error("Error: Bad input stream initializer."));
		}
		yy_reader = new java.io.BufferedReader(new java.io.InputStreamReader(instream));
	}

	private Yylex () {
		yy_buffer = new char[YY_BUFFER_SIZE];
		yy_buffer_read = 0;
		yy_buffer_index = 0;
		yy_buffer_start = 0;
		yy_buffer_end = 0;
		yychar = 0;
		yyline = 0;
		yy_at_bol = true;
		yy_lexical_state = YYINITIAL;
	}

	private boolean yy_eof_done = false;
	private final int STRING = 1;
	private final int YYINITIAL = 0;
	private final int yy_state_dtrans[] = {
		0,
		66
	};
	private void yybegin (int state) {
		yy_lexical_state = state;
	}
	private int yy_advance ()
		throws java.io.IOException {
		int next_read;
		int i;
		int j;

		if (yy_buffer_index < yy_buffer_read) {
			return yy_buffer[yy_buffer_index++];
		}

		if (0 != yy_buffer_start) {
			i = yy_buffer_start;
			j = 0;
			while (i < yy_buffer_read) {
				yy_buffer[j] = yy_buffer[i];
				++i;
				++j;
			}
			yy_buffer_end = yy_buffer_end - yy_buffer_start;
			yy_buffer_start = 0;
			yy_buffer_read = j;
			yy_buffer_index = j;
			next_read = yy_reader.read(yy_buffer,
					yy_buffer_read,
					yy_buffer.length - yy_buffer_read);
			if (-1 == next_read) {
				return YY_EOF;
			}
			yy_buffer_read = yy_buffer_read + next_read;
		}

		while (yy_buffer_index >= yy_buffer_read) {
			if (yy_buffer_index >= yy_buffer.length) {
				yy_buffer = yy_double(yy_buffer);
			}
			next_read = yy_reader.read(yy_buffer,
					yy_buffer_read,
					yy_buffer.length - yy_buffer_read);
			if (-1 == next_read) {
				return YY_EOF;
			}
			yy_buffer_read = yy_buffer_read + next_read;
		}
		return yy_buffer[yy_buffer_index++];
	}
	private void yy_move_end () {
		if (yy_buffer_end > yy_buffer_start &&
		    '\n' == yy_buffer[yy_buffer_end-1])
			yy_buffer_end--;
		if (yy_buffer_end > yy_buffer_start &&
		    '\r' == yy_buffer[yy_buffer_end-1])
			yy_buffer_end--;
	}
	private boolean yy_last_was_cr=false;
	private void yy_mark_start () {
		int i;
		for (i = yy_buffer_start; i < yy_buffer_index; ++i) {
			if ('\n' == yy_buffer[i] && !yy_last_was_cr) {
				++yyline;
			}
			if ('\r' == yy_buffer[i]) {
				++yyline;
				yy_last_was_cr=true;
			} else yy_last_was_cr=false;
		}
		yychar = yychar
			+ yy_buffer_index - yy_buffer_start;
		yy_buffer_start = yy_buffer_index;
	}
	private void yy_mark_end () {
		yy_buffer_end = yy_buffer_index;
	}
	private void yy_to_mark () {
		yy_buffer_index = yy_buffer_end;
		yy_at_bol = (yy_buffer_end > yy_buffer_start) &&
		            ('\r' == yy_buffer[yy_buffer_end-1] ||
		             '\n' == yy_buffer[yy_buffer_end-1] ||
		             2028/*LS*/ == yy_buffer[yy_buffer_end-1] ||
		             2029/*PS*/ == yy_buffer[yy_buffer_end-1]);
	}
	private java.lang.String yytext () {
		return (new java.lang.String(yy_buffer,
			yy_buffer_start,
			yy_buffer_end - yy_buffer_start));
	}
	private int yylength () {
		return yy_buffer_end - yy_buffer_start;
	}
	private char[] yy_double (char buf[]) {
		int i;
		char newbuf[];
		newbuf = new char[2*buf.length];
		for (i = 0; i < buf.length; ++i) {
			newbuf[i] = buf[i];
		}
		return newbuf;
	}
	private final int YY_E_INTERNAL = 0;
	private final int YY_E_MATCH = 1;
	private java.lang.String yy_error_string[] = {
		"Error: Internal error.\n",
		"Error: Unmatched input.\n"
	};
	private void yy_error (int code,boolean fatal) {
		java.lang.System.out.print(yy_error_string[code]);
		java.lang.System.out.flush();
		if (fatal) {
			throw new Error("Fatal Error.\n");
		}
	}
	private int[][] unpackFromString(int size1, int size2, String st) {
		int colonIndex = -1;
		String lengthString;
		int sequenceLength = 0;
		int sequenceInteger = 0;

		int commaIndex;
		String workString;

		int res[][] = new int[size1][size2];
		for (int i= 0; i < size1; i++) {
			for (int j= 0; j < size2; j++) {
				if (sequenceLength != 0) {
					res[i][j] = sequenceInteger;
					sequenceLength--;
					continue;
				}
				commaIndex = st.indexOf(',');
				workString = (commaIndex==-1) ? st :
					st.substring(0, commaIndex);
				st = st.substring(commaIndex+1);
				colonIndex = workString.indexOf(':');
				if (colonIndex == -1) {
					res[i][j]=Integer.parseInt(workString);
					continue;
				}
				lengthString =
					workString.substring(colonIndex+1);
				sequenceLength=Integer.parseInt(lengthString);
				workString=workString.substring(0,colonIndex);
				sequenceInteger=Integer.parseInt(workString);
				res[i][j] = sequenceInteger;
				sequenceLength--;
			}
		}
		return res;
	}
	private int yy_acpt[] = {
		/* 0 */ YY_NOT_ACCEPT,
		/* 1 */ YY_NO_ANCHOR,
		/* 2 */ YY_NO_ANCHOR,
		/* 3 */ YY_NO_ANCHOR,
		/* 4 */ YY_NO_ANCHOR,
		/* 5 */ YY_NO_ANCHOR,
		/* 6 */ YY_NO_ANCHOR,
		/* 7 */ YY_NO_ANCHOR,
		/* 8 */ YY_NO_ANCHOR,
		/* 9 */ YY_NO_ANCHOR,
		/* 10 */ YY_NO_ANCHOR,
		/* 11 */ YY_NO_ANCHOR,
		/* 12 */ YY_NO_ANCHOR,
		/* 13 */ YY_NO_ANCHOR,
		/* 14 */ YY_NO_ANCHOR,
		/* 15 */ YY_NO_ANCHOR,
		/* 16 */ YY_NO_ANCHOR,
		/* 17 */ YY_NO_ANCHOR,
		/* 18 */ YY_NO_ANCHOR,
		/* 19 */ YY_NO_ANCHOR,
		/* 20 */ YY_NO_ANCHOR,
		/* 21 */ YY_NO_ANCHOR,
		/* 22 */ YY_NO_ANCHOR,
		/* 23 */ YY_NO_ANCHOR,
		/* 24 */ YY_NO_ANCHOR,
		/* 25 */ YY_NO_ANCHOR,
		/* 26 */ YY_NO_ANCHOR,
		/* 27 */ YY_NO_ANCHOR,
		/* 28 */ YY_NO_ANCHOR,
		/* 29 */ YY_NO_ANCHOR,
		/* 30 */ YY_NO_ANCHOR,
		/* 31 */ YY_NO_ANCHOR,
		/* 32 */ YY_NO_ANCHOR,
		/* 33 */ YY_NO_ANCHOR,
		/* 34 */ YY_NO_ANCHOR,
		/* 35 */ YY_NO_ANCHOR,
		/* 36 */ YY_NO_ANCHOR,
		/* 37 */ YY_NO_ANCHOR,
		/* 38 */ YY_NO_ANCHOR,
		/* 39 */ YY_NO_ANCHOR,
		/* 40 */ YY_NO_ANCHOR,
		/* 41 */ YY_NO_ANCHOR,
		/* 42 */ YY_NO_ANCHOR,
		/* 43 */ YY_NO_ANCHOR,
		/* 44 */ YY_NO_ANCHOR,
		/* 45 */ YY_NO_ANCHOR,
		/* 46 */ YY_NO_ANCHOR,
		/* 47 */ YY_NO_ANCHOR,
		/* 48 */ YY_NO_ANCHOR,
		/* 49 */ YY_NO_ANCHOR,
		/* 50 */ YY_NO_ANCHOR,
		/* 51 */ YY_NO_ANCHOR,
		/* 52 */ YY_NO_ANCHOR,
		/* 53 */ YY_NO_ANCHOR,
		/* 54 */ YY_NO_ANCHOR,
		/* 55 */ YY_NO_ANCHOR,
		/* 56 */ YY_NO_ANCHOR,
		/* 57 */ YY_NO_ANCHOR,
		/* 58 */ YY_NO_ANCHOR,
		/* 59 */ YY_NO_ANCHOR,
		/* 60 */ YY_NO_ANCHOR,
		/* 61 */ YY_NO_ANCHOR,
		/* 62 */ YY_NO_ANCHOR,
		/* 63 */ YY_NO_ANCHOR,
		/* 64 */ YY_NO_ANCHOR,
		/* 65 */ YY_NO_ANCHOR,
		/* 66 */ YY_NOT_ACCEPT,
		/* 67 */ YY_NO_ANCHOR,
		/* 68 */ YY_NO_ANCHOR,
		/* 69 */ YY_NO_ANCHOR,
		/* 70 */ YY_NO_ANCHOR,
		/* 71 */ YY_NO_ANCHOR,
		/* 72 */ YY_NO_ANCHOR,
		/* 73 */ YY_NO_ANCHOR,
		/* 74 */ YY_NO_ANCHOR,
		/* 75 */ YY_NO_ANCHOR,
		/* 76 */ YY_NO_ANCHOR,
		/* 77 */ YY_NO_ANCHOR,
		/* 78 */ YY_NO_ANCHOR,
		/* 79 */ YY_NO_ANCHOR,
		/* 80 */ YY_NO_ANCHOR,
		/* 81 */ YY_NO_ANCHOR,
		/* 82 */ YY_NO_ANCHOR,
		/* 83 */ YY_NO_ANCHOR,
		/* 84 */ YY_NO_ANCHOR,
		/* 85 */ YY_NO_ANCHOR,
		/* 86 */ YY_NO_ANCHOR,
		/* 87 */ YY_NO_ANCHOR,
		/* 88 */ YY_NO_ANCHOR,
		/* 89 */ YY_NO_ANCHOR,
		/* 90 */ YY_NO_ANCHOR,
		/* 91 */ YY_NO_ANCHOR,
		/* 92 */ YY_NO_ANCHOR,
		/* 93 */ YY_NO_ANCHOR,
		/* 94 */ YY_NO_ANCHOR,
		/* 95 */ YY_NO_ANCHOR,
		/* 96 */ YY_NO_ANCHOR,
		/* 97 */ YY_NO_ANCHOR,
		/* 98 */ YY_NO_ANCHOR,
		/* 99 */ YY_NO_ANCHOR,
		/* 100 */ YY_NO_ANCHOR,
		/* 101 */ YY_NO_ANCHOR,
		/* 102 */ YY_NO_ANCHOR,
		/* 103 */ YY_NO_ANCHOR,
		/* 104 */ YY_NO_ANCHOR,
		/* 105 */ YY_NO_ANCHOR,
		/* 106 */ YY_NO_ANCHOR,
		/* 107 */ YY_NO_ANCHOR,
		/* 108 */ YY_NO_ANCHOR,
		/* 109 */ YY_NO_ANCHOR,
		/* 110 */ YY_NO_ANCHOR,
		/* 111 */ YY_NO_ANCHOR,
		/* 112 */ YY_NO_ANCHOR,
		/* 113 */ YY_NO_ANCHOR,
		/* 114 */ YY_NO_ANCHOR,
		/* 115 */ YY_NO_ANCHOR,
		/* 116 */ YY_NO_ANCHOR,
		/* 117 */ YY_NO_ANCHOR,
		/* 118 */ YY_NO_ANCHOR,
		/* 119 */ YY_NO_ANCHOR,
		/* 120 */ YY_NO_ANCHOR,
		/* 121 */ YY_NO_ANCHOR,
		/* 122 */ YY_NO_ANCHOR,
		/* 123 */ YY_NO_ANCHOR,
		/* 124 */ YY_NO_ANCHOR,
		/* 125 */ YY_NO_ANCHOR,
		/* 126 */ YY_NO_ANCHOR,
		/* 127 */ YY_NO_ANCHOR,
		/* 128 */ YY_NO_ANCHOR,
		/* 129 */ YY_NO_ANCHOR,
		/* 130 */ YY_NO_ANCHOR,
		/* 131 */ YY_NO_ANCHOR,
		/* 132 */ YY_NO_ANCHOR,
		/* 133 */ YY_NO_ANCHOR,
		/* 134 */ YY_NO_ANCHOR,
		/* 135 */ YY_NO_ANCHOR,
		/* 136 */ YY_NO_ANCHOR,
		/* 137 */ YY_NO_ANCHOR,
		/* 138 */ YY_NO_ANCHOR,
		/* 139 */ YY_NO_ANCHOR,
		/* 140 */ YY_NO_ANCHOR,
		/* 141 */ YY_NO_ANCHOR,
		/* 142 */ YY_NO_ANCHOR,
		/* 143 */ YY_NO_ANCHOR,
		/* 144 */ YY_NO_ANCHOR,
		/* 145 */ YY_NO_ANCHOR,
		/* 146 */ YY_NO_ANCHOR,
		/* 147 */ YY_NO_ANCHOR,
		/* 148 */ YY_NO_ANCHOR,
		/* 149 */ YY_NO_ANCHOR,
		/* 150 */ YY_NO_ANCHOR,
		/* 151 */ YY_NO_ANCHOR,
		/* 152 */ YY_NO_ANCHOR,
		/* 153 */ YY_NO_ANCHOR,
		/* 154 */ YY_NO_ANCHOR,
		/* 155 */ YY_NO_ANCHOR,
		/* 156 */ YY_NO_ANCHOR,
		/* 157 */ YY_NO_ANCHOR,
		/* 158 */ YY_NO_ANCHOR,
		/* 159 */ YY_NO_ANCHOR,
		/* 160 */ YY_NO_ANCHOR,
		/* 161 */ YY_NO_ANCHOR,
		/* 162 */ YY_NO_ANCHOR,
		/* 163 */ YY_NO_ANCHOR,
		/* 164 */ YY_NO_ANCHOR,
		/* 165 */ YY_NO_ANCHOR,
		/* 166 */ YY_NO_ANCHOR,
		/* 167 */ YY_NO_ANCHOR,
		/* 168 */ YY_NO_ANCHOR,
		/* 169 */ YY_NO_ANCHOR,
		/* 170 */ YY_NO_ANCHOR,
		/* 171 */ YY_NO_ANCHOR,
		/* 172 */ YY_NO_ANCHOR,
		/* 173 */ YY_NO_ANCHOR,
		/* 174 */ YY_NO_ANCHOR,
		/* 175 */ YY_NO_ANCHOR,
		/* 176 */ YY_NO_ANCHOR,
		/* 177 */ YY_NO_ANCHOR,
		/* 178 */ YY_NO_ANCHOR,
		/* 179 */ YY_NO_ANCHOR,
		/* 180 */ YY_NO_ANCHOR,
		/* 181 */ YY_NO_ANCHOR,
		/* 182 */ YY_NO_ANCHOR
	};
	private int yy_cmap[] = unpackFromString(1,130,
"2:8,42:2,43,2:2,0,2:18,3,2:6,1,39,40,28,26,37,27,41,29,34:10,2,38,30,31,32," +
"2:2,20,18,7,24,5,9,15,14,22,35,33,6,12,23,11,17,35,10,4,8,16,21,13,25,19,35" +
",2:4,36,2,35:26,2:5,44:2")[0];

	private int yy_rmap[] = unpackFromString(1,183,
"0,1:2,2,3,1,4,1:2,5,1,6,4,1:5,2,1,7,8:2,9,1:3,8:37,1:2,10,11,12,13,14,15,16" +
",8,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40," +
"41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65," +
"66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,8,88,89,9" +
"0,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,11" +
"1,112,113,114,115,116,117,118,119,120,121,122,123,124")[0];

	private int yy_nxt[][] = unpackFromString(125,45,
"-1,1,2,3,4,145,162,168,170,171,172,67,173,174,175,176,177,178,68,145,69,179" +
",70,180,181,145,5,6,7,8,9,10,11,182,12,145,2,13,14,15,16,17,18:2,19,-1:48,1" +
"8,-1:38,18:2,-1:5,145,71,145:10,72,145:9,-1:7,145,73,145,73,-1:42,12,-1:41," +
"24,25,-1:43,26,-1:17,145:20,153,145,-1:7,145,73,145,73,-1:12,145:22,-1:7,14" +
"5,73,145,73,-1:12,166,145:3,108,145:17,-1:7,145,73,145,73,-1:9,64,65:41,-1," +
"19,-1:4,145:6,20,145:15,-1:7,145,73,145,73,-1:12,145:15,21,145:6,-1:7,145,7" +
"3,145,73,-1:12,22,145:16,88,145,89,145:2,-1:7,145,73,145,73,-1:12,145:19,23" +
",145:2,-1:7,145,73,145,73,-1:12,145:2,163,145,27,145:17,-1:7,145,73,145,73," +
"-1:12,145:8,28,145:13,-1:7,145,73,145,73,-1:12,145:19,96,145:2,-1:7,145,73," +
"145,73,-1:12,145,164,145:20,-1:7,145,73,145,73,-1:12,145:12,97,145:9,-1:7,1" +
"45,73,145,73,-1:12,145:16,98,145:5,-1:7,145,73,145,73,-1:12,145:14,151,145:" +
"7,-1:7,145,73,145,73,-1:12,145:8,99,145:13,-1:7,145,73,145,73,-1:12,145:4,2" +
"9,145:2,100,145:14,-1:7,145,73,145,73,-1:12,145:7,101,145:14,-1:7,145,73,14" +
"5,73,-1:12,145:6,102,145:15,-1:7,145,73,145,73,-1:12,145:21,30,-1:7,145,73," +
"145,73,-1:12,145:19,31,145:2,-1:7,145,73,145,73,-1:12,145:17,150,145:4,-1:7" +
",145,73,145,73,-1:12,145:20,152,145,-1:7,145,73,145,73,-1:12,145:18,106,145" +
":3,-1:7,145,73,145,73,-1:12,145:11,32,145:10,-1:7,145,73,145,73,-1:12,145:2" +
"0,33,145,-1:7,145,73,145,73,-1:12,145:2,154,145:3,107,145:15,-1:7,145,73,14" +
"5,73,-1:12,145:4,34,145:17,-1:7,145,73,145,73,-1:12,145:2,109,145:19,-1:7,1" +
"45,73,145,73,-1:12,145:2,169,110,145,165,145:16,-1:7,145,73,145,73,-1:12,14" +
"5:4,112,145:17,-1:7,145,73,145,73,-1:12,145:15,35,145:6,-1:7,145,73,145,73," +
"-1:12,145:11,36,145:10,-1:7,145,73,145,73,-1:12,145:19,114,145:2,-1:7,145,7" +
"3,145,73,-1:12,145:6,37,145:15,-1:7,145,73,145,73,-1:12,145,38,145:20,-1:7," +
"145,73,145,73,-1:12,145:16,116,145:5,-1:7,145,73,145,73,-1:12,145:8,39,145:" +
"13,-1:7,145,73,145,73,-1:12,145,156,145:20,-1:7,145,73,145,73,-1:12,145:2,4" +
"0,145:19,-1:7,145,73,145,73,-1:12,145:6,118,145:15,-1:7,145,73,145,73,-1:12" +
",145:12,120,145:9,-1:7,145,73,145,73,-1:12,145:8,121,145:13,-1:7,145,73,145" +
",73,-1:12,145:3,123,145:18,-1:7,145,73,145,73,-1:12,145,125,145:5,41,145:14" +
",-1:7,145,73,145,73,-1:12,145:2,42,145:19,-1:7,145,73,145,73,-1:12,145:18,1" +
"26,145:3,-1:7,145,73,145,73,-1:12,145:14,128,145:7,-1:7,145,73,145,73,-1:12" +
",145,43,145:20,-1:7,145,73,145,73,-1:12,145:4,130,145:17,-1:7,145,73,145,73" +
",-1:12,145:4,44,145:17,-1:7,145,73,145,73,-1:12,145,45,145:20,-1:7,145,73,1" +
"45,73,-1:12,145:4,46,145:17,-1:7,145,73,145,73,-1:12,145:6,47,145:15,-1:7,1" +
"45,73,145,73,-1:12,145,48,145:20,-1:7,145,73,145,73,-1:12,145:19,131,145:2," +
"-1:7,145,73,145,73,-1:12,145:13,49,145:8,-1:7,145,73,145,73,-1:12,145:16,15" +
"8,145:5,-1:7,145,73,145,73,-1:12,145,133,145:20,-1:7,145,73,145,73,-1:12,14" +
"5:10,134,145:11,-1:7,145,73,145,73,-1:12,145:6,135,145:15,-1:7,145,73,145,7" +
"3,-1:12,145:11,136,145:10,-1:7,145,73,145,73,-1:12,145:8,161,145:13,-1:7,14" +
"5,73,145,73,-1:12,145:12,160,145:9,-1:7,145,73,145,73,-1:12,145:2,138,145:1" +
"9,-1:7,145,73,145,73,-1:12,145:4,50,145:17,-1:7,145,73,145,73,-1:12,145,51," +
"145:20,-1:7,145,73,145,73,-1:12,145:11,52,145:10,-1:7,145,73,145,73,-1:12,1" +
"45,53,145:20,-1:7,145,73,145,73,-1:12,54,145:21,-1:7,145,73,145,73,-1:12,14" +
"5:16,141,145:5,-1:7,145,73,145,73,-1:12,145:4,55,145:17,-1:7,145,73,145,73," +
"-1:12,145,142,145:20,-1:7,145,73,145,73,-1:12,145,56,145:20,-1:7,145,73,145" +
",73,-1:12,145,57,145:20,-1:7,145,73,145,73,-1:12,145:19,58,145:2,-1:7,145,7" +
"3,145,73,-1:12,145:15,59,145:6,-1:7,145,73,145,73,-1:12,145:6,60,145:15,-1:" +
"7,145,73,145,73,-1:12,145:6,61,145:15,-1:7,145,73,145,73,-1:12,145:2,62,145" +
":19,-1:7,145,73,145,73,-1:12,145:4,63,145:17,-1:7,145,73,145,73,-1:12,145,1" +
"04,145:20,-1:7,145,73,145,73,-1:12,145:12,111,145:9,-1:7,145,73,145,73,-1:1" +
"2,145:16,103,145:5,-1:7,145,73,145,73,-1:12,145:7,105,145:14,-1:7,145,73,14" +
"5,73,-1:12,145:18,119,145:3,-1:7,145,73,145,73,-1:12,145:2,115,145:19,-1:7," +
"145,73,145,73,-1:12,145:16,157,145:5,-1:7,145,73,145,73,-1:12,145,117,145:2" +
"0,-1:7,145,73,145,73,-1:12,145:12,122,145:9,-1:7,145,73,145,73,-1:12,145:3," +
"129,145:18,-1:7,145,73,145,73,-1:12,145:18,159,145:3,-1:7,145,73,145,73,-1:" +
"12,145:4,132,145:17,-1:7,145,73,145,73,-1:12,145:6,140,145:15,-1:7,145,73,1" +
"45,73,-1:12,145:11,139,145:10,-1:7,145,73,145,73,-1:12,145:2,144,145:19,-1:" +
"7,145,73,145,73,-1:12,145:16,143,145:5,-1:7,145,73,145,73,-1:12,145:7,74,14" +
"5:14,-1:7,145,73,145,73,-1:12,145,155,145:20,-1:7,145,73,145,73,-1:12,145:1" +
"6,113,145:5,-1:7,145,73,145,73,-1:12,145:16,127,145:5,-1:7,145,73,145,73,-1" +
":12,145,124,145:20,-1:7,145,73,145,73,-1:12,145:4,137,145:17,-1:7,145,73,14" +
"5,73,-1:12,145:6,75,76,145:2,77,145:11,-1:7,145,73,145,73,-1:12,145,167,145" +
":20,-1:7,145,73,145,73,-1:12,145:16,78,145,79,145:3,-1:7,145,73,145,73,-1:1" +
"2,145:2,80,145:3,81,82,145:14,-1:7,145,73,145,73,-1:12,145,148,145:20,-1:7," +
"145,73,145,73,-1:12,145:16,83,145,84,145:3,-1:7,145,73,145,73,-1:12,145:10," +
"146,145:11,-1:7,145,73,145,73,-1:12,145:16,85,145:5,-1:7,145,73,145,73,-1:1" +
"2,145:6,149,145:15,-1:7,145,73,145,73,-1:12,145:13,86,145:8,-1:7,145,73,145" +
",73,-1:12,145:6,87,145:15,-1:7,145,73,145,73,-1:12,145:16,90,145:5,-1:7,145" +
",73,145,73,-1:12,145:7,91,145:4,92,145:9,-1:7,145,73,145,73,-1:12,145,93,14" +
"5:5,147,145:8,94,145:5,-1:7,145,73,145,73,-1:12,145,95,145:20,-1:7,145,73,1" +
"45,73,-1:8");

	public Token nextToken ()
		throws java.io.IOException {
		int yy_lookahead;
		int yy_anchor = YY_NO_ANCHOR;
		int yy_state = yy_state_dtrans[yy_lexical_state];
		int yy_next_state = YY_NO_STATE;
		int yy_last_accept_state = YY_NO_STATE;
		boolean yy_initial = true;
		int yy_this_accept;

		yy_mark_start();
		yy_this_accept = yy_acpt[yy_state];
		if (YY_NOT_ACCEPT != yy_this_accept) {
			yy_last_accept_state = yy_state;
			yy_mark_end();
		}
		while (true) {
			if (yy_initial && yy_at_bol) yy_lookahead = YY_BOL;
			else yy_lookahead = yy_advance();
			yy_next_state = YY_F;
			yy_next_state = yy_nxt[yy_rmap[yy_state]][yy_cmap[yy_lookahead]];
			if (YY_EOF == yy_lookahead && true == yy_initial) {

	{
		return tok(yyline,sym.EOF, null);
    }
			}
			if (YY_F != yy_next_state) {
				yy_state = yy_next_state;
				yy_initial = false;
				yy_this_accept = yy_acpt[yy_state];
				if (YY_NOT_ACCEPT != yy_this_accept) {
					yy_last_accept_state = yy_state;
					yy_mark_end();
				}
			}
			else {
				if (YY_NO_STATE == yy_last_accept_state) {
					throw (new Error("Lexical Error: Unmatched Input."));
				}
				else {
					yy_anchor = yy_acpt[yy_last_accept_state];
					if (0 != (YY_END & yy_anchor)) {
						yy_move_end();
					}
					yy_to_mark();
					switch (yy_last_accept_state) {
					case 1:
						{yybegin(STRING);string_content = "";}
					case -2:
						break;
					case 2:
						{return tok(yyline,sym.error,"Error: Unmatched Input!");}
					case -3:
						break;
					case 3:
						{}
					case -4:
						break;
					case 4:
						{return tok(yyline,sym.ID,yytext());}
					case -5:
						break;
					case 5:
						{return tok(yyline,sym.PLUS,null);}
					case -6:
						break;
					case 6:
						{return tok(yyline,sym.MINUS,null);}
					case -7:
						break;
					case 7:
						{return tok(yyline,sym.TIMES,null);}
					case -8:
						break;
					case 8:
						{return tok(yyline,sym.DIVIDE,null);}
					case -9:
						break;
					case 9:
						{return tok(yyline,sym.LT,null);}
					case -10:
						break;
					case 10:
						{return tok(yyline,sym.EQ,null);}
					case -11:
						break;
					case 11:
						{return tok(yyline,sym.GT,null);}
					case -12:
						break;
					case 12:
						{return tok(yyline,sym.INT,new Integer(yytext()));}
					case -13:
						break;
					case 13:
						{return tok(yyline,sym.COMM,null);}
					case -14:
						break;
					case 14:
						{}
					case -15:
						break;
					case 15:
						{return tok(yyline,sym.LPAREN,null);}
					case -16:
						break;
					case 16:
						{return tok(yyline,sym.RPAREN,null);}
					case -17:
						break;
					case 17:
						{return tok(yyline,sym.PERIOD,null);}
					case -18:
						break;
					case 18:
						{ }
					case -19:
						break;
					case 19:
						
					case -20:
						break;
					case 20:
						{return tok(yyline,sym.OR,null);}
					case -21:
						break;
					case 21:
						{return tok(yyline,sym.BY,null);}
					case -22:
						break;
					case 22:
						{return tok(yyline,sym.AS,null);}
					case -23:
						break;
					case 23:
						{return tok(yyline,sym.IN,null);}
					case -24:
						break;
					case 24:
						{return tok(yyline,sym.LE,null);}
					case -25:
						break;
					case 25:
						{return tok(yyline,sym.NEQ,null);}
					case -26:
						break;
					case 26:
						{return tok(yyline,sym.GE,null);}
					case -27:
						break;
					case 27:
						{return tok(yyline,sym.SET,null);}
					case -28:
						break;
					case 28:
						{return tok(yyline,sym.SUM,null);}
					case -29:
						break;
					case 29:
						{return tok(yyline,sym.FLT,null);}
					case -30:
						break;
					case 30:
						{return tok(yyline,sym.MAX,null);}
					case -31:
						break;
					case 31:
						{return tok(yyline,sym.MIN,null);}
					case -32:
						break;
					case 32:
						{return tok(yyline,sym.AVG,null);}
					case -33:
						break;
					case 33:
						{return tok(yyline,sym.AND,null);}
					case -34:
						break;
					case 34:
						{return tok(yyline,sym.NOT,null);}
					case -35:
						break;
					case 35:
						{return tok(yyline,sym.KEY,null);}
					case -36:
						break;
					case 36:
						{return tok(yyline,sym.LONG,null);}
					case -37:
						break;
					case 37:
						{return tok(yyline,sym.CHAR,null);}
					case -38:
						break;
					case 38:
						{return tok(yyline,sym.TIME,null);}
					case -39:
						break;
					case 39:
						{return tok(yyline,sym.FROM, null);}
					case -40:
						break;
					case 40:
						{return tok(yyline,sym.REAL,null);}
					case -41:
						break;
					case 41:
						{return tok(yyline,sym.INTO,null);}
					case -42:
						break;
					case 42:
						{return tok(yyline,sym.NULL,null);}
					case -43:
						break;
					case 43:
						{return tok(yyline,sym.DATE,null);}
					case -44:
						break;
					case 44:
						{return tok(yyline,sym.COUNT,null);}
					case -45:
						break;
					case 45:
						{return tok(yyline,sym.TABLE,null);}
					case -46:
						break;
					case 46:
						{return tok(yyline,sym.FLOAT,null);}
					case -47:
						break;
					case 47:
						{return tok(yyline,sym.ORDER,null);}
					case -48:
						break;
					case 48:
						{return tok(yyline,sym.WHERE,null);}
					case -49:
						break;
					case 49:
						{return tok(yyline,sym.GROUP,null);}
					case -50:
						break;
					case 50:
						{return tok(yyline,sym.SELECT, null);}
					case -51:
						break;
					case 51:
						{return tok(yyline,sym.CREATE,null);}
					case -52:
						break;
					case 52:
						{return tok(yyline,sym.HAVING,null);}
					case -53:
						break;
					case 53:
						{return tok(yyline,sym.UPDATE,null);}
					case -54:
						break;
					case 54:
						{return tok(yyline,sym.VALUES,null);}
					case -55:
						break;
					case 55:
						{return tok(yyline,sym.INSERT,null);}
					case -56:
						break;
					case 56:
						{return tok(yyline,sym.DELETE,null);}
					case -57:
						break;
					case 57:
						{return tok(yyline,sym.DOUBLE,null);}
					case -58:
						break;
					case 58:
						{return tok(yyline,sym.FOREIGN,null);}
					case -59:
						break;
					case 59:
						{return tok(yyline,sym.PRIMARY,null);}
					case -60:
						break;
					case 60:
						{return tok(yyline,sym.VARCHAR,null);}
					case -61:
						break;
					case 61:
						{return tok(yyline,sym.INTEGER,null);}
					case -62:
						break;
					case 62:
						{return tok(yyline,sym.DECIMAL,null);}
					case -63:
						break;
					case 63:
						{return tok(yyline,sym.DEFAULT,null);}
					case -64:
						break;
					case 64:
						{       
				yybegin(YYINITIAL);                
				return tok(yyline,sym.STRING,string_content);
		}
					case -65:
						break;
					case 65:
						{string_content+=yytext();}
					case -66:
						break;
					case 67:
						{return tok(yyline,sym.ID,yytext());}
					case -67:
						break;
					case 68:
						{return tok(yyline,sym.ID,yytext());}
					case -68:
						break;
					case 69:
						{return tok(yyline,sym.ID,yytext());}
					case -69:
						break;
					case 70:
						{return tok(yyline,sym.ID,yytext());}
					case -70:
						break;
					case 71:
						{return tok(yyline,sym.ID,yytext());}
					case -71:
						break;
					case 72:
						{return tok(yyline,sym.ID,yytext());}
					case -72:
						break;
					case 73:
						{return tok(yyline,sym.ID,yytext());}
					case -73:
						break;
					case 74:
						{return tok(yyline,sym.ID,yytext());}
					case -74:
						break;
					case 75:
						{return tok(yyline,sym.ID,yytext());}
					case -75:
						break;
					case 76:
						{return tok(yyline,sym.ID,yytext());}
					case -76:
						break;
					case 77:
						{return tok(yyline,sym.ID,yytext());}
					case -77:
						break;
					case 78:
						{return tok(yyline,sym.ID,yytext());}
					case -78:
						break;
					case 79:
						{return tok(yyline,sym.ID,yytext());}
					case -79:
						break;
					case 80:
						{return tok(yyline,sym.ID,yytext());}
					case -80:
						break;
					case 81:
						{return tok(yyline,sym.ID,yytext());}
					case -81:
						break;
					case 82:
						{return tok(yyline,sym.ID,yytext());}
					case -82:
						break;
					case 83:
						{return tok(yyline,sym.ID,yytext());}
					case -83:
						break;
					case 84:
						{return tok(yyline,sym.ID,yytext());}
					case -84:
						break;
					case 85:
						{return tok(yyline,sym.ID,yytext());}
					case -85:
						break;
					case 86:
						{return tok(yyline,sym.ID,yytext());}
					case -86:
						break;
					case 87:
						{return tok(yyline,sym.ID,yytext());}
					case -87:
						break;
					case 88:
						{return tok(yyline,sym.ID,yytext());}
					case -88:
						break;
					case 89:
						{return tok(yyline,sym.ID,yytext());}
					case -89:
						break;
					case 90:
						{return tok(yyline,sym.ID,yytext());}
					case -90:
						break;
					case 91:
						{return tok(yyline,sym.ID,yytext());}
					case -91:
						break;
					case 92:
						{return tok(yyline,sym.ID,yytext());}
					case -92:
						break;
					case 93:
						{return tok(yyline,sym.ID,yytext());}
					case -93:
						break;
					case 94:
						{return tok(yyline,sym.ID,yytext());}
					case -94:
						break;
					case 95:
						{return tok(yyline,sym.ID,yytext());}
					case -95:
						break;
					case 96:
						{return tok(yyline,sym.ID,yytext());}
					case -96:
						break;
					case 97:
						{return tok(yyline,sym.ID,yytext());}
					case -97:
						break;
					case 98:
						{return tok(yyline,sym.ID,yytext());}
					case -98:
						break;
					case 99:
						{return tok(yyline,sym.ID,yytext());}
					case -99:
						break;
					case 100:
						{return tok(yyline,sym.ID,yytext());}
					case -100:
						break;
					case 101:
						{return tok(yyline,sym.ID,yytext());}
					case -101:
						break;
					case 102:
						{return tok(yyline,sym.ID,yytext());}
					case -102:
						break;
					case 103:
						{return tok(yyline,sym.ID,yytext());}
					case -103:
						break;
					case 104:
						{return tok(yyline,sym.ID,yytext());}
					case -104:
						break;
					case 105:
						{return tok(yyline,sym.ID,yytext());}
					case -105:
						break;
					case 106:
						{return tok(yyline,sym.ID,yytext());}
					case -106:
						break;
					case 107:
						{return tok(yyline,sym.ID,yytext());}
					case -107:
						break;
					case 108:
						{return tok(yyline,sym.ID,yytext());}
					case -108:
						break;
					case 109:
						{return tok(yyline,sym.ID,yytext());}
					case -109:
						break;
					case 110:
						{return tok(yyline,sym.ID,yytext());}
					case -110:
						break;
					case 111:
						{return tok(yyline,sym.ID,yytext());}
					case -111:
						break;
					case 112:
						{return tok(yyline,sym.ID,yytext());}
					case -112:
						break;
					case 113:
						{return tok(yyline,sym.ID,yytext());}
					case -113:
						break;
					case 114:
						{return tok(yyline,sym.ID,yytext());}
					case -114:
						break;
					case 115:
						{return tok(yyline,sym.ID,yytext());}
					case -115:
						break;
					case 116:
						{return tok(yyline,sym.ID,yytext());}
					case -116:
						break;
					case 117:
						{return tok(yyline,sym.ID,yytext());}
					case -117:
						break;
					case 118:
						{return tok(yyline,sym.ID,yytext());}
					case -118:
						break;
					case 119:
						{return tok(yyline,sym.ID,yytext());}
					case -119:
						break;
					case 120:
						{return tok(yyline,sym.ID,yytext());}
					case -120:
						break;
					case 121:
						{return tok(yyline,sym.ID,yytext());}
					case -121:
						break;
					case 122:
						{return tok(yyline,sym.ID,yytext());}
					case -122:
						break;
					case 123:
						{return tok(yyline,sym.ID,yytext());}
					case -123:
						break;
					case 124:
						{return tok(yyline,sym.ID,yytext());}
					case -124:
						break;
					case 125:
						{return tok(yyline,sym.ID,yytext());}
					case -125:
						break;
					case 126:
						{return tok(yyline,sym.ID,yytext());}
					case -126:
						break;
					case 127:
						{return tok(yyline,sym.ID,yytext());}
					case -127:
						break;
					case 128:
						{return tok(yyline,sym.ID,yytext());}
					case -128:
						break;
					case 129:
						{return tok(yyline,sym.ID,yytext());}
					case -129:
						break;
					case 130:
						{return tok(yyline,sym.ID,yytext());}
					case -130:
						break;
					case 131:
						{return tok(yyline,sym.ID,yytext());}
					case -131:
						break;
					case 132:
						{return tok(yyline,sym.ID,yytext());}
					case -132:
						break;
					case 133:
						{return tok(yyline,sym.ID,yytext());}
					case -133:
						break;
					case 134:
						{return tok(yyline,sym.ID,yytext());}
					case -134:
						break;
					case 135:
						{return tok(yyline,sym.ID,yytext());}
					case -135:
						break;
					case 136:
						{return tok(yyline,sym.ID,yytext());}
					case -136:
						break;
					case 137:
						{return tok(yyline,sym.ID,yytext());}
					case -137:
						break;
					case 138:
						{return tok(yyline,sym.ID,yytext());}
					case -138:
						break;
					case 139:
						{return tok(yyline,sym.ID,yytext());}
					case -139:
						break;
					case 140:
						{return tok(yyline,sym.ID,yytext());}
					case -140:
						break;
					case 141:
						{return tok(yyline,sym.ID,yytext());}
					case -141:
						break;
					case 142:
						{return tok(yyline,sym.ID,yytext());}
					case -142:
						break;
					case 143:
						{return tok(yyline,sym.ID,yytext());}
					case -143:
						break;
					case 144:
						{return tok(yyline,sym.ID,yytext());}
					case -144:
						break;
					case 145:
						{return tok(yyline,sym.ID,yytext());}
					case -145:
						break;
					case 146:
						{return tok(yyline,sym.ID,yytext());}
					case -146:
						break;
					case 147:
						{return tok(yyline,sym.ID,yytext());}
					case -147:
						break;
					case 148:
						{return tok(yyline,sym.ID,yytext());}
					case -148:
						break;
					case 149:
						{return tok(yyline,sym.ID,yytext());}
					case -149:
						break;
					case 150:
						{return tok(yyline,sym.ID,yytext());}
					case -150:
						break;
					case 151:
						{return tok(yyline,sym.ID,yytext());}
					case -151:
						break;
					case 152:
						{return tok(yyline,sym.ID,yytext());}
					case -152:
						break;
					case 153:
						{return tok(yyline,sym.ID,yytext());}
					case -153:
						break;
					case 154:
						{return tok(yyline,sym.ID,yytext());}
					case -154:
						break;
					case 155:
						{return tok(yyline,sym.ID,yytext());}
					case -155:
						break;
					case 156:
						{return tok(yyline,sym.ID,yytext());}
					case -156:
						break;
					case 157:
						{return tok(yyline,sym.ID,yytext());}
					case -157:
						break;
					case 158:
						{return tok(yyline,sym.ID,yytext());}
					case -158:
						break;
					case 159:
						{return tok(yyline,sym.ID,yytext());}
					case -159:
						break;
					case 160:
						{return tok(yyline,sym.ID,yytext());}
					case -160:
						break;
					case 161:
						{return tok(yyline,sym.ID,yytext());}
					case -161:
						break;
					case 162:
						{return tok(yyline,sym.ID,yytext());}
					case -162:
						break;
					case 163:
						{return tok(yyline,sym.ID,yytext());}
					case -163:
						break;
					case 164:
						{return tok(yyline,sym.ID,yytext());}
					case -164:
						break;
					case 165:
						{return tok(yyline,sym.ID,yytext());}
					case -165:
						break;
					case 166:
						{return tok(yyline,sym.ID,yytext());}
					case -166:
						break;
					case 167:
						{return tok(yyline,sym.ID,yytext());}
					case -167:
						break;
					case 168:
						{return tok(yyline,sym.ID,yytext());}
					case -168:
						break;
					case 169:
						{return tok(yyline,sym.ID,yytext());}
					case -169:
						break;
					case 170:
						{return tok(yyline,sym.ID,yytext());}
					case -170:
						break;
					case 171:
						{return tok(yyline,sym.ID,yytext());}
					case -171:
						break;
					case 172:
						{return tok(yyline,sym.ID,yytext());}
					case -172:
						break;
					case 173:
						{return tok(yyline,sym.ID,yytext());}
					case -173:
						break;
					case 174:
						{return tok(yyline,sym.ID,yytext());}
					case -174:
						break;
					case 175:
						{return tok(yyline,sym.ID,yytext());}
					case -175:
						break;
					case 176:
						{return tok(yyline,sym.ID,yytext());}
					case -176:
						break;
					case 177:
						{return tok(yyline,sym.ID,yytext());}
					case -177:
						break;
					case 178:
						{return tok(yyline,sym.ID,yytext());}
					case -178:
						break;
					case 179:
						{return tok(yyline,sym.ID,yytext());}
					case -179:
						break;
					case 180:
						{return tok(yyline,sym.ID,yytext());}
					case -180:
						break;
					case 181:
						{return tok(yyline,sym.ID,yytext());}
					case -181:
						break;
					case 182:
						{return tok(yyline,sym.ID,yytext());}
					case -182:
						break;
					default:
						yy_error(YY_E_INTERNAL,false);
					case -1:
					}
					yy_initial = true;
					yy_state = yy_state_dtrans[yy_lexical_state];
					yy_next_state = YY_NO_STATE;
					yy_last_accept_state = YY_NO_STATE;
					yy_mark_start();
					yy_this_accept = yy_acpt[yy_state];
					if (YY_NOT_ACCEPT != yy_this_accept) {
						yy_last_accept_state = yy_state;
						yy_mark_end();
					}
				}
			}
		}
	}
}
